package com.qdxwx.models.approal;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/*
* 审核记录
**/
public class Approal implements Serializable {
    private static final long serialVersionUID = -97739776208329288L;

    //主键id
    private int id;

    //关联id
    private int infoId;

    //类型对照ModuleType：0 未知；1 文章；2 课程；3 教材； 4 图片；5 文档
    private int typeId;

    //状态：-1 驳回；1 通过
    private Integer status;

    //描述
    private String comment;

    //审核人id
    private int manageId;

    //审核人姓名
    private String manageName;

    //创建时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInfoId() {
        return infoId;
    }

    public void setInfoId(int infoId) {
        this.infoId = infoId;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public int getManageId() {
        return manageId;
    }

    public void setManageId(int manageId) {
        this.manageId = manageId;
    }

    public String getManageName() {
        return manageName;
    }

    public void setManageName(String manageName) {
        this.manageName = manageName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Approal{" +
                "id=" + id +
                ", infoId=" + infoId +
                ", typeId=" + typeId +
                ", status=" + status +
                ", comment='" + comment + '\'' +
                ", manageId=" + manageId +
                ", manageName='" + manageName + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
